﻿//-----------------------------------------------------------------------
// <copyright>
// Copyright (C) Sergey Solyanik for The Black Square Project.
//
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

using DocumentManager;

namespace DocumentManagerTest
{
    /// <summary>
    /// A test for the document manager system.
    /// </summary>
    class Program
    {
        private static void MergeComments()
        {
            string file1 = @"C:\Users\sergeyso\Desktop\test.docx";
            string file2 = @"C:\Users\sergeyso\Desktop\test2.docx";
            // File.Copy(file1, file2, true);
            DocumentLocker.Lock(file1);
            DocumentLocker.Lock(file2);
            DocumentUtils.MergeComments(file1, file2);
            DocumentUtils.RemoveDuplicateComments(file1);
        }

        /// <summary>
        /// Main program - invokes our tests.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            MergeComments();
        }
    }
}
